package spring.aop.annotation;

import org.springframework.stereotype.Component;

/**
 * @author Yancy xiao
 * @create 2022-11-19 15:36
 */
@Component
public class CalulatorImpl implements Calculator {
    @Override
    public int add(int i, int j) {
        int s = i + j;
        return s;
    }
 
    @Override
    public int sub(int i, int j) {
        int s = i - j;
        return s;
    }

    @Override
    public int mul(int i, int j) {
        int s = i * j;
        return s;
    }

    @Override
    public int div(int i, int j) {
        int s = i / j;
        return s;
    }
}